<%--
  Created by IntelliJ IDEA.
  User: Adger
  Date: 2020/8/28
  Time: 10:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%--
    这个method一定是post而不是文件本身 get有大小限制
    一定需要这个不然只能上传文件名字
    enctype="multipart/form-data
    --%>
    <form action="/file/upload" method="post" enctype="multipart/form-data">
        <input type="file" name="img">
        <input type="submit" value="上传">
    </form>
    <img src="${path}">
</body>
</html>
